package com.xxgc.spring.web;

import com.xxgc.spring.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

//Web层对外提供的登录接口
@Controller
public class LoginWeb {
    //Web层要和service层建立通信
    @Autowired
    private ILoginService ils;

    //用户登录
    public void loginUser(String name,String pass){
        System.out.println("用户来调用接口了");
        System.out.println("调用登录的业务逻辑");
        ils.userLogin(name,pass);
    }
}
